
//
//  QZSeleteTimeView.m
//  SmallShoppingCenter
//
//  Created by 上官惠阳 on 15/10/15.
//  Copyright (c) 2015年 上官惠阳. All rights reserved.
//

#import "QZSeleteTimeView.h"

@implementation QZSeleteTimeView

- (void)awakeFromNib {
    // Initialization code
    self.backgroundColor = [UIColor clearColor];
    
}

-(void)setPickerView:(UIView *)pickerView
{
    if (_pickerView) {
        [_pickerView removeFromSuperview];
    }
    _pickerView = pickerView;
    _pickerView.frame = CGRectMake(0, 0, _backView.frame.size.width, _backView.frame.size.height);
    [_backView addSubview:_pickerView];
}

//-(void)setDatePicker:(UIDatePicker *)datePicker
//{
//    if (_datePicker) {
//        [_datePicker removeFromSuperview];
//    }
//    _datePicker = datePicker;
//    _datePicker.frame = CGRectMake(0, 0, _backView.frame.size.width, _backView.frame.size.height);
//    [_backView addSubview:_datePicker];
//}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
